package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class MatchType implements Serializable {
    private String matno;

    private String matname;

    private String matdesc;

    private static final long serialVersionUID = 1L;

    public String getMatno() {
        return matno;
    }

    public void setMatno(String matno) {
        this.matno = matno;
    }

    public String getMatname() {
        return matname;
    }

    public void setMatname(String matname) {
        this.matname = matname;
    }

    public String getMatdesc() {
        return matdesc;
    }

    public void setMatdesc(String matdesc) {
        this.matdesc = matdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MatchType other = (MatchType) that;
        return (this.getMatno() == null ? other.getMatno() == null : this.getMatno().equals(other.getMatno()))
            && (this.getMatname() == null ? other.getMatname() == null : this.getMatname().equals(other.getMatname()))
            && (this.getMatdesc() == null ? other.getMatdesc() == null : this.getMatdesc().equals(other.getMatdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMatno() == null) ? 0 : getMatno().hashCode());
        result = prime * result + ((getMatname() == null) ? 0 : getMatname().hashCode());
        result = prime * result + ((getMatdesc() == null) ? 0 : getMatdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", matno=").append(matno);
        sb.append(", matname=").append(matname);
        sb.append(", matdesc=").append(matdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}